#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int n = 0;
	scanf("%d", &n);
	int arr[100][100];
	arr[0][0] = 1;
	int row = 1;
	for (int i = 1; i < 100; i++)
	{
		arr[i][0] = arr[i - 1][0] + row;
		row++;
	}
	int m = 2, temp = 2;
	for (int i = 0; i < 100; i++)
	{
		for (int j = 1; j < 100; j++)
		{
			arr[i][j] = arr[i][j - 1] + m;
			m++;
		}
		temp++;
		m = temp;
	}
	temp = n;
	for (int i = 0; i < n; i++)
	{
		for (int j = 0; j < temp; j++)
		{
			printf("%d ", arr[i][j]);
		}
		printf("\n");
		temp--;
	}
	return 0;
}